package com.ceba.test.modules.admin.service;

import com.ceba.base.web.service.IBaseService;
import com.ceba.test.modules.admin.dao.OrganizeDao;

public class OrganizeService  extends IBaseService{

	private OrganizeDao organizeDao;
	
	
	public boolean hasChildOrganize(String departId) {
		
		return organizeDao.hasChildOrganize(departId);
	}

	public boolean hasUserInOragnize(String departId) {
		
		return organizeDao.hasUserInOragnize(departId);
	}

	public boolean deleteOrganize(String departId) {
		
		return  organizeDao.deleteOrganize(departId);
	}

	//强制删除该部门的子部门以及子用户
	public boolean deleteForceOrganize(String departId) {
	
		return organizeDao.deleteForceOrganize(departId);
	}
	
	

	
	public OrganizeDao getOrganizeDao() {
		return organizeDao;
	}

	public void setOrganizeDao(OrganizeDao organizeDao) {
		this.organizeDao = organizeDao;
	}
	
	
	
	
	
}
